package day10.homework;
/** 狼类 */
public class Wolf0 extends Canidae{
    //北极狼
    private String arcticwolf;
    //草原狼
    private String prairiewolf;
    //森林狼
    private String forestwolf;
    public Wolf0(){

    }
    public Wolf0(String arcticwolf, String prairiewolf, String forestwolf){
        this.arcticwolf = arcticwolf;
        this.prairiewolf = prairiewolf;
        this.forestwolf = forestwolf;
    }
    public void life(){
        System.out.println(this.arcticwolf + "生活在北极" + prairiewolf + "生活在草原" + forestwolf + "生活在森林");
    }
}
